package com.nsapi.niceschoolapi.service;

import com.nsapi.niceschoolapi.entity.ClassinfoDB;
import com.nsapi.niceschoolapi.entity.DropoutVO;
import com.nsapi.niceschoolapi.entity.StudentDB;
import com.nsapi.niceschoolapi.entity.StudentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StudentService {
    //根据前台传来信息添加学生
    Integer addStudent(StudentVO studentVO);

    //  班级人数+1
    Integer selecteClassinfo(Integer classid);
    //  年级人数+1
    Integer selecteGrade(Integer gid);
    //  专业人数+1
    Integer selecteMajor(Integer mid);
    //  系部人数+1
    Integer selecteDepartment(Integer did);

    //  查询所有学生
    public List<Map> selStudent(StudentVO studentVO);

    //根据id查询一条学生信息
    public StudentDB selStudentId(Integer id);

    //查询班级
    public List<ClassinfoDB> selClass();

    //  修改学生信息
    public int updateStudent(StudentDB studentDB);

    //查询退学信息
    public List<DropoutVO> selDropout(DropoutVO dropoutVO);

     //对指定学生进行退学
     public int studentDropout(DropoutVO dropoutVO);

    //添加退学信息
     public int addDropout(DropoutVO dropoutVO);

    //根据学生名称查询信息
    public StudentDB student(String name);
}
